package com.example.projuct.demos.week.week3.chapter2_1;

/**
 * @author jll
 * @createTime 2025/4/9
 * @description 测试猫类
 * @version: 1.0
 */
public class TestCat {
    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.setAge(3);
        cat.setName("小花");
        //cat.name  //这样是不行得
        System.out.println(cat.getName());
    }
}
